/**
 * Global Header File
 */
#ifndef GLOB_H
#define GLOB_H

#include <avr\io.h>

#define TEXT_WRAP 1

#define DEBUG 1


// The responce of the system.
#define TIME_ACT 400000
#define TIME_BUT 200

/**
 * Provides a speedy way to keep track of time
 */
typedef union time
{
    uint32_t time32;
    uint8_t time8[4];
    uint16_t time16[2];

} time_t;

/** A boolean type */
typedef enum {TRUE=1,true=1,false=0,FALSE=0} bool_t;
/** Directions */
typedef enum {left=0,right=1,up=2,down=3, push=4} direction_t;
/** define what to return from a function */
enum exit_status {EXIT_FAIL=0, EXIT_SUCCESS=1, EXIT_SLEEP=2};

#endif
